package com.founder.barcode.bussiness.util;

import com.founder.barcode.bussiness.cache.PanelInfoCache;
import com.founder.barcode.persistence.po.PanelInfoPO;

public class CommonUtil {
    
    /**
     * 返回授权ip
     * @param businessId
     * @return
     */
    public static String getPanelAuthIp(String businessId) {
        PanelInfoPO panelInfoPO = PanelInfoCache.getPanelInfoCache(businessId);
        String address = panelInfoPO.getAuthUrl().split(",")[0];
        return address;
    }
    
    
}
